﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class SupportService
    {
        private readonly SupportController _supportController = new SupportController();

        #region [Support_GetByAll]

        public DataTable Support_GetByAll()
        {
            return _supportController.Support_GetByAll();
        }

        #endregion

        #region [Support_GetById]

        public DataTable Support_GetById(int id)
        {
            return _supportController.Support_GetById(id);
        }

        #endregion

        #region [Support_Insert]

        public void Support_Insert(SupportInfo support)
        {
            _supportController.Support_Insert(support);
        }

        #endregion

        #region [Support_Update]

        public void Support_Update(SupportInfo support)
        {
            _supportController.Support_Update(support);
        }

        #endregion

        #region [Support_Delete]

        public void Support_Delete(int id)
        {
            _supportController.Support_Delete(id);
        }

        #endregion

        #region [Support_ActiveStatus]

        public void Support_ActiveStatus(int id, int status)
        {
            _supportController.Support_ActiveStatus(id, status);
        }

        #endregion
    }
}